import request from "@/utils/request";


export function getUserInfo() {
    return request({
        url: "/user/userInfo",
        method: "get",
        headers: {
            isToken: true
        }
    })
}
export function getUserInfoById(userId) {
    return request({
        url: "/user/userInfo/byId/" + userId,
        method: "get",
        headers: {
            isToken: true
        }
    })
}
export function updateUserInfo(data) {
    return request({
        url: "/user/userInfo",
        method: "put",
        headers: {
            isToken: true,
            'Content-Type': 'multipart/form-data; boundary=----WebKitFormBoundaryVCFSAonTuDbVCoAN'
        },
        data: data


    })
}